package com.xyd.biz.impl;

import com.xyd.biz.UserBiz;
import com.xyd.dao.UserMapper;
import com.xyd.entity.User;
import com.xyd.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

public class UserBizImpl implements UserBiz {
    UserMapper userMapper = null;

    public UserBizImpl() {
        SqlSession session = SqlSessionFactoryUtil.getSqlSession();
        userMapper = session.getMapper(UserMapper.class);
    }

    @Override
    public User userLogin(User user) {
        return userMapper.userLogin(user);
    }
}
